package com.hitemole.objects;

import java.util.Map;

import com.badlogic.gdx.graphics.g2d.Animation;
import com.badlogic.gdx.math.Vector2;
import com.hitemole.interfaces.IMoveableObject;

public class MoveableAnimatedObject extends AnimatedGameObject implements IMoveableObject{

	protected Vector2 direction;
	protected float speed;

	public MoveableAnimatedObject(String name, Map<String,Animation> animation,
			Vector2 position, Vector2 direction, float speed,float scaleX, float scaleY) {
		super(name, animation, position, scaleX, scaleY);
		// TODO Auto-generated constructor stub
		this.direction=direction;
		this.speed=speed;
	}

	@Override
	public void setSpeed(float speed) {
		// TODO Auto-generated method stub
		this.speed=speed;
	}

	@Override
	public float getSpeed() {
		// TODO Auto-generated method stub
		return speed;
	}

	@Override
	public void setDirection(Vector2 direction) {
		// TODO Auto-generated method stub
		this.direction =direction;
	}

	@Override
	public Vector2 getDirection() {
		// TODO Auto-generated method stub
		return direction;
	}

}
